<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>角色新增页面</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
        <h1 class="text-center">角色新增页面</h1>
    <div class="row">
        <div class="col-2"><h6>姓名：  曾川</h6></div>
        <div class="col-10"><h6>学号：  1604220539</h6></div>
    </div>
    <div class="dropdown-divider"></div>
        <div class="row">
            <div class="col">
               <label>电影名称：</label>
               <span th:text="${info.name}">黄飞鸿</span>
            </div>
            <div class="col">
                <label>发行日期：</label>
                <span th:text="${#dates.format(info.createDate, 'yyyy-MM-dd')}">黄飞鸿</span>

            </div>
        </div>

        <form method="post" th:action="@{/role/add}">
            <div class="form-group">
                <label for="roleName">角色名称</label>
                <input type="text" class="form-control" name="roleName" />
            </div>
            <div class="form-group">
                <label for="actorName">演员姓名</label>
                <select class="form-control" name="actorid">
                    <option th:each="actor,actorStat : ${list}" th:text="${actor.name}" th:value="${actor.id}"></option>
                </select>
           </div>
            <input type="hidden" name="movieId" th:value="${info.id}"/>
            <button type="submit" class="btn btn-primary">保存</button>
        </form>
    </div>
</body>
</html>